import service from '@/utils/request'
// @Tags VideoAudio
// @Summary 创建videoAudio表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.VideoAudio true "创建videoAudio表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /videoAudio/createVideoAudio [post]
export const createVideoAudio = (data) => {
  return service({
    url: '/videoAudio/createVideoAudio',
    method: 'post',
    data
  })
}

// @Tags VideoAudio
// @Summary 删除videoAudio表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.VideoAudio true "删除videoAudio表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /videoAudio/deleteVideoAudio [delete]
export const deleteVideoAudio = (params) => {
  return service({
    url: '/videoAudio/deleteVideoAudio',
    method: 'delete',
    params
  })
}

// @Tags VideoAudio
// @Summary 批量删除videoAudio表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除videoAudio表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /videoAudio/deleteVideoAudio [delete]
export const deleteVideoAudioByIds = (params) => {
  return service({
    url: '/videoAudio/deleteVideoAudioByIds',
    method: 'delete',
    params
  })
}

// @Tags VideoAudio
// @Summary 更新videoAudio表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.VideoAudio true "更新videoAudio表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /videoAudio/updateVideoAudio [put]
export const updateVideoAudio = (data) => {
  return service({
    url: '/videoAudio/updateVideoAudio',
    method: 'put',
    data
  })
}

// @Tags VideoAudio
// @Summary 用id查询videoAudio表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.VideoAudio true "用id查询videoAudio表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /videoAudio/findVideoAudio [get]
export const findVideoAudio = (params) => {
  return service({
    url: '/videoAudio/findVideoAudio',
    method: 'get',
    params
  })
}

// @Tags VideoAudio
// @Summary 分页获取videoAudio表列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取videoAudio表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /videoAudio/getVideoAudioList [get]
export const getVideoAudioList = (params) => {
  return service({
    url: '/videoAudio/getVideoAudioList',
    method: 'get',
    params
  })
}

// @Tags VideoAudio
// @Summary 不需要鉴权的videoAudio表接口
// @Accept application/json
// @Produce application/json
// @Param data query exampleReq.VideoAudioSearch true "分页获取videoAudio表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /videoAudio/getVideoAudioPublic [get]
export const getVideoAudioPublic = () => {
  return service({
    url: '/videoAudio/getVideoAudioPublic',
    method: 'get',
  })
}
